Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #5859 (Melt crashes melting MSIs with elevated privileges) #469

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

dtuchlinsky
Copy link

Fix bug where melt.exe crashes when attempting to write to a temporary file in a temporary directory that no longer exists. TempFileCollection will create a sub-directory in %TMP% when run with elevated UAC privileges and when the instance of TempFileCollection is deleted the sub-directory is also deleted.

@dnfclas
Copy link

dnfclas commented Aug 3, 2018

CLA assistant check
All CLA requirements met.

@barnson
Copy link
Member

barnson commented Aug 16, 2018

wixtoolset/issues#5859

@@ -84,17 +84,16 @@ public static Pdb Load(string path, bool suppressVersionCheck, bool suppressSche
internal static Pdb Load(Stream stream, Uri uri, bool suppressVersionCheck, bool suppressSchema)
{
XmlReader reader = null;
TempFileCollection tempFileCollection = null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not critical, but I would recommend a try/finally wherein you dispose of the TempFileCollection if it is not assigned to pdb.Output.TempFiles

@barnson barnson force-pushed the develop branch 4 times, most recently from f5d73ed to 90c9809 Compare February 27, 2020 22:51
@chzawist
Copy link

Thanks for providing this patch 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants